package com.project.service.impl;

import com.project.bean.UserBean;
import com.project.mapper.IUserMapper;
import com.project.service.IUserService;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserMapper mapper;

    @Override
    public UserBean login(String userName, String pwd) {
        return mapper.login(userName,pwd);
    }

    @Override
    public void add(UserBean userBean) {
mapper.add(userBean);
    }

    @Override
    public UserBean checkName(String name) {
        return mapper.checkName(name);
    }
}
